
<template>
  <div class="home">
    <h2>home</h2>
    <ul>
      <template v-for="item in $store.state.home.banner" :key="item.acm">
        <li>
          {{ item.title }}
        </li>
      </template>
    </ul>
  </div>
</template>
<script>
</script>

<script setup>
  import { useStore } from 'vuex';
  // 告诉vuex发起网络请求
  const store = useStore()
  store.dispatch('fetchHomeMultidataAction').then((res)=>{
    console.log("home中的then回调",res);
  })

</script>
